<?php

namespace catchAdmin\pc\tables;

use catchAdmin\pc\tables\forms\Factory;
use catcher\CatchTable;
use catcher\library\table\Actions;
use catcher\library\table\HeaderItem;
use catcher\library\table\Search;

class SysSet extends CatchTable
{

    public function Table()
    {
        return $this->getTable('sysSet')
            ->header([
                HeaderItem::label('比例')->prop('value')->width('350'),
                HeaderItem::label('备注')->prop('note'),
                HeaderItem::label('操作')
                    ->actions([
                        Actions::update(),
//                    Actions::delete(),
//                        Actions::normal('查看详情', 'zz3', 'tongguoshenhe', 'el-icon-s-tools'),

                    ])
                    ->width(260),
            ])
            ->withSearch([
                Search::label('备注')->text('note', '备注')->clearable(true),
//                Search::label('行业')->text('vocation_name', '行业')->clearable(true),
            ])
            ->selectionChange()
            ->withApiRoute('sysSet')
            ->withActions([
//                Actions::update(),
//                Actions::create(),
//                Actions::export(),
            ])
            ->render();
    }


    public function form()
    {
        return Factory::create('sysSet');
    }

}
